package com.wzl.demo_07_03;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

public class SencondActivity extends AppCompatActivity {

    private TextView tv2;

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sencond);

        tv2 = (TextView)findViewById(R.id.task_tv_2);
        tv2.setText("taskid:"+this.getTaskId());

        Log.i(this.getClass().getSimpleName(), "onCreate");

    }
    public void go(View view){
        startActivity(new Intent(this,SencondActivity.class));
    }
}